.theme-blue {
  .other-page-icon {
    background-color: $theme-bule;
  }
}
.theme-green {
  .other-page-icon {
    background-color: $theme-green;
  }
}
.theme-red {
  .other-page-icon {
    background-color: $theme-red;
  }
}

//今日任务
.task-list-wrapper {
  .list-scroll {
    .list-item {
      &.active {
      }
    }
  }
  .task-item-head {
    padding: 32px 0;
    //&:after {task-item-body
    .left-panel {
      width: 42px;
      .task-item-avatar {
        position: relative;
        overflow: hidden;
        width: 42px;
        height: 42px;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        border-radius: 4px;
        margin-top: 12px;
        .status-icon {
          position: absolute;
          top: 0;
          left: 0;
          width: 42px;
          height: 42px;
          background-color: rgba(0, 0, 0, 0.6);
          text-align: center;
          line-height: 48px;
          //opacity: 0;
          &.show {
            opacity: 1;
          }
          i {
            color: white;
            font-size: 22px;
          }
        }
        .svg-abnormal,
        .svg-normal{
          background-size: 22px;
          background-repeat: no-repeat;
          background-position: center;
        }
        .svg-normal{
          background-image: url("../assets/icon/icon-normal.svg");
        }
        .svg-abnormal{
          background-image: url("../assets/icon/icon-abnormal.svg");
        }
      }
    }
    .right-panel {
      padding: 0 10px;
      width: 278px;
      .title {
        font-size: 16px;
        color: black;
      }
      .address,
      .title {
        text-overflow: ellipsis;
        overflow: hidden;
        word-break: break-word;
      }
      .date-owner-box{
        display: flex;
        align-items: center;
        justify-content: space-between;
      }
      .address,
      .date,
      .owner {
        font-size: 14px;
        color: $gray;
        .icon {
          font-size: 10px;
          color: $gray;
        }
        span {
          padding-left: 6px;
        }
      }
      .address {
        .icon-local {
          left: 2px;
          position: relative;
        }
      }
      .date {
        //width: 100px;
        display: inline-block;
      }
      .owner {
        //width: 136px;
        display: inline-block;
        text-align: right;
        float: right;
      }
    }
  }

  //.task-item-body {
  //  display: none !important;
  //  //display: flex;
  //  //flex-direction: row;
  //  .task-item-progress {
  //    padding: 20px 10px 10px 10px;
  //    width: calc(100% - 80px);
  //    display: flex;
  //    flex-direction: row;
  //    .progress-num {
  //      font-size: 14px;
  //      color: $gray;
  //      margin-right: 8px;
  //      width: auto;
  //      display: inline-block;
  //    }
  //    .progress {
  //      width: calc(100% - 35px);
  //      border-radius: 20px;
  //      .progress-bar {
  //        background-color: $theme-bule;
  //        border-radius: 20px;
  //      }
  //    }
  //  }
  //  .task-item-history {
  //    position: relative;
  //    .collapse-btn {
  //      width: 44px;
  //      height: 44px;
  //      position: absolute;
  //      float: right;
  //      right: 0;
  //      top: -50px;
  //    }
  //    .task-item-history-panel {
  //      overflow: hidden;
  //      position: relative;
  //      border-radius: 0;
  //      margin: 0;
  //      padding: 10px 10px 10px 18px;
  //      list-style: none;
  //      border: none;
  //      background-color: transparent;
  //      .history-item {
  //        padding: 4px 0;
  //        position: relative;
  //        color: $gray;
  //        &:first-child {
  //          color: black;
  //        }
  //        &:first-child:after {
  //          color: $theme-bule;
  //        }
  //        &:after {
  //          content: '●';
  //          display: inline-block;
  //          color: $dark;
  //          font-size: 10px;
  //          vertical-align: middle;
  //          left: -4px;
  //          top: 10px;
  //          position: absolute;
  //        }
  //        &:before {
  //          content: ' ';
  //          display: inline-block;
  //          border-left: 1px $dark solid;
  //          height: 40px;
  //          width: 1px;
  //          position: absolute;
  //          left: 0;
  //          top: 20px;
  //        }
  //        .time,
  //        .info {
  //          font-size: 14px;
  //          padding-left: 16px;
  //        }
  //        .info {
  //
  //        }
  //      }
  //    }
  //  }
  //}
}

//照片库
.photos-panel {
  &.in-other_page {
  }
  .photos-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-count: 5;
    padding: 0 5px;
    .image-panel {
      width: 25%;
      max-width: 25%;
      min-width: 25%;
      margin-top: 15px;
      box-sizing: border-box;
      padding: 0 6px;
      .box {
        position: relative;
        height: 0;
        padding-bottom: 76.75%;
        .photo-box {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          display: flex;
          align-items: center;
          justify-content: center;
          .photo{
            width: 100%;
            height: 100%;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            position: relative;
          }
          img {
            width: 100%;
            max-width: 100%;
            max-height: 100%;
            display: block;
          }
        }
        .check-photo-btn {
          width: 44px;
          height: 44px;
          position: absolute;
          bottom: -5px;
          right: -5px;
          box-sizing: border-box;
          z-index: 112;
          .icon-normal {
            font-size: 24px;
            color: white;
            margin: 10px;
            display: block;
          }
        }
        .remove_photo_btn {
          width: 44px;
          height: 44px;
          background-color: transparent;
          background-image: url(../assets/icon/del.svg);
          background-size: 24px;
          background-repeat: no-repeat;
          background-position: center;
          position: absolute;
          top: -20px;
          right: -20px;
          z-index: 112;
        }
      }
      &.active{
        .box:before{
          content: ' ';
          display: block;
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background-color: rgba(0, 0, 0, 0.6);
          pointer-events: none;
          z-index: 110;
        }
        .icon-normal{
          color: $success !important;
        }
      }
    }
  }
}

.photo-gallery{
  .check-photo-btn{
    //display: none !important;
  }
}

#photo-preview{
  .modal-content{
    max-width: 100vw;
    width: 100vw;
    max-height: 100vh;
    height: 100vh;
    background: transparent;
    border: 0;
    .modal-header{
      position: absolute;
      right: 0;
      top: 0;
      padding: 0;
      margin: 0;
      border: 0;
      .close {
        width: 72px;
        height: 72px;
        box-sizing: border-box;
        z-index: 1050;
        span {
          position: absolute;
          top: 0;
          right: 0;
          line-height: 1;
          font-size: 60px;
          width: 72px;
          height: 72px;
          box-sizing: border-box;
          text-align: center;
          vertical-align: middle;
          padding: 0;
          margin: 0;
          display: block;
          color: white;
          text-shadow: 1px 1px 3px #333;
        }
      }
    }
    .modal-body{
      background: rgba(0, 0, 0, 0.8);
      display: flex;
      align-items: center;
      justify-content: center;
      .image-box{
        width: calc(100vw - 32px);
        height: calc(100vh - 32px);
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
        display: block;
        z-index: 1049;
      }
      .image-box-loading{
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        top: 0;
        left: 0;
        position: absolute;
        z-index: 1048;
        &:before {
          content: $loading-icon-font;
          font-family: 'icomoon' !important;
          font-size: 34px;
          display: inline-block;
          animation: rotation 2s infinite linear;
          color: white;
        }
      }
    }
  }
}

//登录
.login-page{
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  background-image: url("../assets/login/login-bg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 808px 433px;
  .login-box {
    height: 430px;
    .login-logo{
      margin-bottom: 10px;
    }
    .login-title {
      font-size: 30px;
      text-align: center;
      color: $theme-bule;
    }
    .login-form-panel {
      margin-top: 44px;
      border-top-left-radius: 20px;
      border-bottom-right-radius: 20px;
      border-top-right-radius: 4px;
      border-bottom-left-radius: 4px;
      background-color: white;
      padding: 36px 30px;
      width: 350px;
      height: 250px;
      box-sizing: border-box;
      box-shadow: 0 0 2rem rgba(0, 0, 0, 0.15);
      .input-panel {
        border-bottom: 1px $dark solid;
        &.input-panel-error{
          border-bottom: 2px #dc3545 solid;
        }
        label{
          font-size: 18px;
          color: $dark;
          margin: 0;
        }
        input{
          border: none;
          padding: 2px 6px 2px 16px;
          width: calc(100% - 38px);
        }
      }
      .user-panel{
        margin-bottom: 26px;
      }
      .password-panel{
        margin-bottom: 18px;
      }
      .forgot-panel{
        margin-bottom: 20px;
      }
      .login-btn{
        background-color: $theme-bule;
        color: white;
      }
    }
  }
}

//项目统计
.schedule-header{
  padding: 30px 15px;
  .back-btn{
    font-size: 16px;
    color: $theme-bule;
  }
}
.schedule-page {
  width: 100vw;
  padding-top: 30px;
  .title{
    text-align: center;
    font-size: 30px;
    color: $theme-bule;
    margin-bottom: 40px;
  }
  .time{
    text-align: center;
    font-size: 18px;
    color: $theme-bule;
    margin-bottom: 46px;
  }
  .schedule-table {
    table {
      width: 100%;
      &.head-table {
        tr {
          &:first-child td {
            background-color: $theme-bule !important;
            height: 56px !important;
            color: white !important;
            border-top-left-radius: 8px;
            border-top-right-radius: 8px;
            border-bottom: none;

            &:last-child {
              background-color: #942b27 !important;
            }
          }

          &:nth-child(2) td {
            background-color: #b6d4ef;
            background-image: url("../assets/schedule/table-icon-bg.png");
            background-size: 150px 72px;
            background-repeat: no-repeat;
            background-position: center top;
            height: 84px !important;

            &:last-child {
              background-image: url("../assets/schedule/table-icon-bg-red.png");
              background-color: #f7f4f4;
            }

            .icon {
              padding-top: 6px;

              i {
                color: white;
                font-size: 38px;
              }
            }
          }
        }
      }
      tr {
        &:nth-child(odd) td {
          background-color: #e5eef6;
          &:first-child{
            color: #333333;
          }
          &:last-child{
            background-color: #f7f4f4;
            color: #690602;
          }
        }
        &:nth-child(even) td {
          background-color: #bacde0;
          &:first-child{
            color: #333333;
          }
          &:last-child{
            background-color: #e7d2d4;
            color: #690602;
          }
        }
      }
      td {
        padding: 10px;
        box-sizing: border-box;
        width: 75px;
        height: 56px;
        text-align: center;
        color: #032e7c;
        border: 1px white solid;
        &[colspan="2"]{
          width: 150px;
        }
      }
      .proj_name{
        .icon{
          width: 28px;
          height: 28px;
          background-repeat: no-repeat;
          background-position: center;
          background-size: 28px;
          display: inline-block;
          vertical-align: sub;
          margin-right: 6px;
          .icon-total{
            color: #c00000;
            font-size: 28px;
          }
        }
      }
    }
    .icon{

    }
  }
  .body-table-panel{
    overflow: auto;
    max-height: calc(100vh - 543px);
    display: block;
  }
}

//任务详情
.geolocation-panel{
  .baidu_map-image {
    position: relative;
    padding: 15px;
    background-color: white;
    img {
      max-width: 100%;
    }
    .icon-local-panel {
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      pointer-events: none;
      .icon-local {
        color: #f59316;
        font-size: 26px;
        display: block;
      }
    }
  }
  .location-info{
    padding: 10px 15px !important;
    font-size: 14px;
    .icon{
      margin-right: 6px;
    }
    .icon-local{
      color: #f59316;
    }
  }
}

.photos-thumb-panel {
  position: relative;
  display: flex;
  align-items: center;
  //justify-content: flex-end;
  //flex-grow: 1;
  flex-shrink: 1;
  height: 80px;
  overflow-x: auto;
  .photos-thumb-scroll {
    //position: absolute;
    //top: 0;
    //right: 10px;
    //padding: 0;
    padding: 0 10px 0 0;
    &.photos-thumb-scroll-right {
      //left: 0;
      //right: auto;
    }
  }
  .photos-thumb {
    display: flex;
    align-items: stretch;
    height: 80px;
    padding: 10px 0;
    .photo-box {
      position: relative;
      padding: 0 10px;
      width: 76px;
      //&:last-child {
      //  padding-right: 0;
      //  width: 66px;
      //  .photo {
      //    margin-right: 0;
      //  }
      //}
      &.isDefault {
        order: -1;
      }
      .photo {
        width: 56px;
        height: 56px;
        max-width: 100%;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        position: relative;
      }
      .remove_photo_btn {
        width: 44px;
        height: 44px;
        background-color: transparent;
        background-image: url('../assets/icon/del.svg');
        background-size: 24px;
        background-repeat: no-repeat;
        background-position: center;
        position: absolute;
        top: -18px;
        right: -10px;
        z-index: 112;
      }
    }
  }
}

.textarea-panel {
  position: relative;
  textarea {
    width: 100%;
    min-height: 150px;
    padding: 10px;
  }
  .restrictions {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 14px;
    color: #767676;
  }
}

//.select-photos-panel {
//  .action_btn {
//    background-color: #e1e2e1;
//  }
//  .icon {
//    display: block;
//    background-color: white;
//    padding: 10px;
//    border-radius: 6px;
//    i {
//      font-size: 36px;
//    }
//  }
//  .text {
//
//  }
//}

.photos-thumb-cell {
  padding: 0 15px !important;
  &.pr-0{
    padding-right: 0 !important;
  }
  &.pl-0{
    padding-left: 0 !important;
  }
  .photos-thumb-title {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-right: 5px;
  }
}
.photos-thumb-buttons{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
  button{
    background-color: #f3f6fa;
    width: 56px;
    height: 56px;
    box-sizing: border-box;
    display: block;
    margin: 0 5px;
    i{
      font-size: 26px;
      color: #666;
    }
  }
}

//questionnaire
.questionnaire-header-item{
  position: relative;
  flex-grow: 1;
  &:not(:first-child):not(.agency-name):after{
    content: ' ';
    display: block;
    position: absolute;
    left: 0;
    top: 16px;
    width: 1px;
    height: 50px;
    border-left: 1px #c5c5c5 solid;
    box-sizing: border-box;
  }
  .icon {
    height: 46px;
    span {
      font-size: 26px;
      color: #3dbdff;
    }
    &.progress-icon span{
      font-size: 30px;
      line-height: 1;
      vertical-align: top;
    }
  }
  .item-title{
    font-size: 12px;
  }
  .item-value{
    font-size: 14px;
    color: #3dbdff;
  }
}

.checkVIN-loading{
  height: auto !important;
  position: relative !important;
  background-color: transparent !important;
  &:before{
    font-size: 18px;
  }
}

.sqDataList {
  .icon-warn {
    color: #dc3545;
  }
  .icon-normal {
    color: #28a745;
  }
  .del_newcar_btn {
    background-image: url("../assets/icon/del.svg");
    background-size: 26px;
    background-repeat: no-repeat;
    background-position: center;
    width: 44px;
    height: 44px;
    display: inline-block;
  }
}

.arrive-wrapper,
.leave-wrapper,
.abnormal_report-wrapper,
.normal_report-wrapper{
  .list-scroll .list-item:first-child.active{
    //background-color: white !important;
  }
}

.tablet-btns{
  display: none;
}

.other-page-icon{
  width: 34px;
  height: 34px;
  background-color: $theme-bule;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 64%;
  margin-right: 10px;
  border-radius: 4px;
}

.main-slide[data-path="finishedTask"]{
  .list-wrapper .list-panel .list-scroll{
    height: calc(100vh - 50px) !important;
  }
}


.icon-scan{
  display: inline-block;
  vertical-align: middle;
  width: 32px;
  height: 32px;
  background-size: 22px;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("../assets/icon/icon-scan.svg");
}


.color-theme-2 {
  .other-page-icon{
    background-color: $theme-green;
  }
}

.message_content{
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  word-break: break-word;
  width: 100%;
  display: inline-block;
}

.photos-tool {
  position: absolute;
  top: -10000px;
  left: -10000px;
  width: 800px;
  .croppable_img_content {
    top: -10000px;
    left: -10000px;
    width: 800px;
    height: auto;
  }
}

.cropper-container{
  position: absolute;
  top: -10000px;
  left: -10000px;
}

.notice-wrapper{
  .task-item-avatar{
    .icon{
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      i{
        color: $theme-bule;
        font-size: 32px;
      }
    }
  }
}

#version_type{
  position: fixed;
  bottom: 0;
  left: 0;
  font-size: 8px;
  color: white;
  display: none;
  &.test{
    display: block;
  }
}

.other-page{
  .list-wrapper .list-panel .list-scroll .list-item {
    padding: 24px 10px;
  }
}

@media screen and (max-width: 420px) and (max-height: 812px) and (orientation: portrait), screen and (max-width: 812px) and (max-height: 420px) and (orientation: landscape){
  .login-page .login-box {
    height: 320px;
    .login-logo img {
      max-height: 90px;
    }
    .login-form-panel {
      margin-top: 6px;
      padding: 20px 30px;
      width: 350px;
      height: 190px;
    }
  }
  .schedule-header {
    padding: 10px 15px;
    height: 40px;
  }

  .schedule-page {
    padding-top: 0;
    overflow-y: auto;
    max-height: calc(100vh - 40px);
    .title {
      margin-bottom: 0;
    }
    .time{
      margin-bottom: 10px;
    }
    .body-table-panel {
      max-height: max-content;
    }
  }
  .task-list-wrapper .task-item-head .right-panel {
    .title {
      font-size: 14px;
    }
    .address,
    .date,
    .owner {
      font-size: 12px;
    }
    .date-owner-box {
      flex-wrap: wrap;
    }
  }
  .other-page{
    .list-wrapper .list-panel .list-scroll .list-item {
      padding: 0 8px;
    }
  }

  .questionnaire-header-item .item-value {
    font-size: 12px;
  }
}